import instance from '@/utils/request'

export function loginApi (data) {
  return instance({
    url: '/sys/login',
    method: 'post',
    data
  })
}

export function getInfoApi () {
  return instance({
    url: '/sys/profile',
    method: 'POST'
  })
}

export function getEmpoApi (id) {
  return instance({
    url: `/sys/user/${id}`
  })
}
